package my_observer_pattern.concrete_observer;

import lombok.AllArgsConstructor;
import lombok.Data;
import my_observer_pattern.observer.Observer;

@AllArgsConstructor
@Data
public class WechatUser implements Observer {

    private String name;

    @Override
    public void update(String message) {
        System.out.println(name + "收到了公众号推送:" + message);
    }
}
